var http = require('http')
var server = http.createServer()

server.on('request', function (req,res) {
    console.log('请求路径：' + req.url)
    console.log('请求地址：' + req.socket.remoteAddress, req.socket.remotePort)
    console.log('请求我的客户端的地址是：', req.socket.remoteAddress, req.socket.remotePort)
    res.end('hello')
})

server.listen(3000,function () {
    console.log('server is running')
})